package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.TOngoodsshelfBakMapper;
import com.ruoyi.system.domain.TOngoodsshelfBak;
import com.ruoyi.system.service.ITOngoodsshelfBakService;

/**
 * 入库查询Service业务层处理
 *
 * @author ruoyi
 * @date 2024-09-07
 */
@Service
public class TOngoodsshelfBakServiceImpl implements ITOngoodsshelfBakService
{
    @Autowired
    private TOngoodsshelfBakMapper tOngoodsshelfBakMapper;

    /**
     * 查询入库查询
     *
     * @param lotId 入库查询主键
     * @return 入库查询
     */
    @Override
    public TOngoodsshelfBak selectTOngoodsshelfBakByLotId(String lotId)
    {
        return tOngoodsshelfBakMapper.selectTOngoodsshelfBakByLotId(lotId);
    }

    @Override
    public List<TOngoodsshelfBak> selectFirstTOngoodsshelfBakList(TOngoodsshelfBak tOngoodsshelfBak) {
        return tOngoodsshelfBakMapper.selectFirstTOngoodsshelfBakList(tOngoodsshelfBak);
    }

    /**
     * 查询入库查询列表
     *
     * @param tOngoodsshelfBak 入库查询
     * @return 入库查询
     */
    @Override
    public List<TOngoodsshelfBak> selectTOngoodsshelfBakList(TOngoodsshelfBak tOngoodsshelfBak)
    {
        return tOngoodsshelfBakMapper.selectTOngoodsshelfBakList(tOngoodsshelfBak);
    }

    /**
     * 新增入库查询
     *
     * @param tOngoodsshelfBak 入库查询
     * @return 结果
     */
    @Override
    public int insertTOngoodsshelfBak(TOngoodsshelfBak tOngoodsshelfBak)
    {
        return tOngoodsshelfBakMapper.insertTOngoodsshelfBak(tOngoodsshelfBak);
    }

    /**
     * 修改入库查询
     *
     * @param tOngoodsshelfBak 入库查询
     * @return 结果
     */
    @Override
    public int updateTOngoodsshelfBak(TOngoodsshelfBak tOngoodsshelfBak)
    {
        return tOngoodsshelfBakMapper.updateTOngoodsshelfBak(tOngoodsshelfBak);
    }

    /**
     * 批量删除入库查询
     *
     * @param lotIds 需要删除的入库查询主键
     * @return 结果
     */
    @Override
    public int deleteTOngoodsshelfBakByLotIds(String[] lotIds)
    {
        return tOngoodsshelfBakMapper.deleteTOngoodsshelfBakByLotIds(lotIds);
    }

    /**
     * 删除入库查询信息
     *
     * @param lotId 入库查询主键
     * @return 结果
     */
    @Override
    public int deleteTOngoodsshelfBakByLotId(String lotId)
    {
        return tOngoodsshelfBakMapper.deleteTOngoodsshelfBakByLotId(lotId);
    }
}
